Documentation for Users  2.0.2
Perception Toolbox for Virtual Reality (PTVR) Manual
Azimuth and elevation


The azimuth / elevation Coordinate System belongs to the class of spherical coordinate systems.

In this coordinate system, the 3D position of a point P is defined by 3 coordinates in the following way :
Azimuth (from -180° to 180°).
Elevation (from -180° to 180°).
Radial Distance (in meters) – corresponds to the radius of the sphere on which P is lying (i.e., constant distance between Origin and P).

PTVR fonction to use:
Apply the set_azimuth_elevation_coordinates() fonction to the already created object "my_sphere" as below:

my_sphere = PTVR.Stimuli.Objects.Sphere ()
...
my_sphere.set_azimuth_elevation_coordinates (azimuth = 20, elevation = 135, radialDistance = 1)
😱 Warning: Note that the terms Azimuth and elevation have different meanings in different spherical systems.

Links

Demos

Python file

Description

3.0_create_object_in_azimuth_elevation_coord.py

Create an object and place it in the 3D global space with azimuth and elevation coordinates.